<!--
 * @Author: kls
 * @Date: 2023-03-14 16:35:41
 * @LastEditTime: 2023-03-14 17:37:40
 * @LastEditors: kls
 * @Description: 
 * @FilePath: \jnks-shengpingtai\src\views\shengpingtai\home\components\deviceinformartion.vue
-->
<template>
  <div class="container">
    <div class="device-information-left">
      <img src="../assets/imgs/icon-device-left.png" alt="" />
      <div class="content">
        <div class="title">导航诱骗总数</div>
        <div class="count">
          <countTo
            class="num"
            :startVal="startVal"
            :endVal="jobcount"
            :duration="3000"
            :separator="separator"
          ></countTo
          ><span class="unit">台</span>
        </div>
      </div>
    </div>
    <div class="device-information-right">
      <img src="../assets/imgs/icon-device-right.png" alt="" />
      <div class="content">
        <div class="title">无线电压制总数</div>
        <div class="count">
          <countTo
            class="num"
            :startVal="startVal"
            :endVal="jobcount"
            :duration="3000"
            :separator="separator"
          ></countTo
          ><span class="unit">台</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import countTo from "vue-count-to";
export default {
  components: { countTo },
  created() {},
  data() {
    return {
      startVal: 0,
      jobcount: 2000, //导航诱骗次数
      separator: "", // 数字滚动插件 分隔符
    };
  },
  methods: {},
  computed: {},
  watch: {},
};
</script>

<style scoped lang="less">
.container {
  height: 116px;
  display: flex;
  justify-content: center;
  align-items: center;
  .device-information-left {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    .content {
      .title {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #ffffff;
      }
      .num {
        font-size: 20px;
        font-family: DigifaceWide;
        font-weight: 400;
        color: #4fe0ff;
      }
      .unit {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #ffffff;
      }
    }
  }
  .device-information-right {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    .content {
      .title {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #ffffff;
      }
      .num {
        font-size: 20px;
        font-family: DigifaceWide;
        font-weight: 400;
        color: #2ce686;
      }
      .unit {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #ffffff;
      }
    }
  }
}
</style>
